from g4f.client import Client
from g4f.Provider import *
client = Client()
response = client.chat.completions.create(
    model="google-gemini-pro",
    messages=[{"role": "user", "content": "如何安装nginx"}],
    provider=FreeChatgpt,
    proxy="http://192.168.0.30:7890"
)
print(response.choices[0].message.content)